-- GENERATED SPELL FOR [Plaguebat] --


function spell0_8600(pUnit, Event) --@Terrifying Screech,Self--
pUnit:FullCastSpellOnTarget(6605,pUnit)
pUnit:RegisterEvent('Sorts_8600', 5500, 1)
end

function Sorts_8600(pUnit, Event)
local choix_sorts_8600 = math.random(0, 0)
if choix_sorts_8600 == 0 then
pUnit:RegisterEvent('spell0_8600', 1, 1)
end
end

function mob8600_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8600', math.random(1500, 3000), 1)
end

function mob8600_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8600_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8600_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8600, 1, 'mob8600_Action')
RegisterUnitEvent(8600, 2, 'mob8600_Leave')
RegisterUnitEvent(8600, 3, 'mob8600_Kill')
RegisterUnitEvent(8600, 4, 'mob8600_Die')
